package de.unibi.mmi.homeauto.team1.constants;

public class LIVINGROOM {
	public static final int SMOKE_ID = 60;
	public static final int WINDOW_ID = 61;
	public static final int DOOR_ID = 62;
	public static final int CURRENT_ROOM_TEMP_ID = 63;
	public static final int HEATING_ID = 64;
	public static final int SET_ROOM_TEMP_ID = 65;
	public static final int LAMP_1_ID = 66;
	public static final int LAMP_2_ID = 67;

	public static final int[] IDS = { LIVINGROOM.SMOKE_ID,
			LIVINGROOM.WINDOW_ID, LIVINGROOM.DOOR_ID,
			LIVINGROOM.CURRENT_ROOM_TEMP_ID, LIVINGROOM.HEATING_ID,
			LIVINGROOM.SET_ROOM_TEMP_ID, LIVINGROOM.LAMP_1_ID,
			LIVINGROOM.LAMP_2_ID };

	private static final float[] values = new float[8];
	
	public static final void setValue(int id, float value) {
		values[id-60] = value;
	}

	public static final float getValue(int id) {
		return id >= 60 && id <= 67 ? values[id - 60] : -1;
	}
}
